//
//  YUYALoginViewController.h
//  com.yigu.yuya
//
//  Created by hxp on 16/3/2.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YAYIUserinfoModel;

// 通知名
#define YAYILoginNotifyName @"loginNotifyName"

// 登录状态改变的
typedef enum : NSUInteger {
    YAYILoginStateLogin, // 登入
    YAYILoginStateLogout, // 退出登录
    YAYILoginStateChangeUser // 切换账号
} YAYILoginState;

#define YAYILoginCookieKey @"loginCookie"

typedef void(^YAYILoginSuccessOperation)();
typedef void(^YAYICancelOperation)();

@interface YAYILoginViewController : UIViewController

@property (nonatomic, copy) YAYILoginSuccessOperation loginSuccessOperation;
@property (nonatomic, copy) YAYICancelOperation cancelOperation;


@property (nonatomic, strong) YAYIUserinfoModel *userInfoModel;


/**
 *  登录状态改变
 */
+ (void)loginStateChanged:(YAYILoginState)state;

@end
